/**
 * 
 */
package xiaojian.toolkit.fsm.transformer;

import xiaojian.toolkit.fsm.ContextKeyFactory;
import xiaojian.toolkit.util.Identifyable;

/**
 * @author hp
 *
 */
public class UUIDTransformer implements ContextKeyFactory {

	public void removeKey(Object key) {
		//	do nothing
	}

	public Object transformToKey(Object event) {
		if ( event instanceof Identifyable ) {
			return	((Identifyable)event).getIdentification();
		}
		return null;
	}

}
